import request from '@/config/axios'
import type {
    TableData,
    TableDataRegister
} from './types'
/* 登录日志 */
export const getTableListRegister = (params: any): Promise<TableDataRegister> => {
  return request.get({ url: '/api/login/selLoginLogs', params })
}

export const saveTableApi = (data: Partial<TableData>): Promise<IResponse> => {
  return request.post({ url: '/example/save', data })
}

export const getTableDetApi = (id: string): Promise<IResponse<TableData>> => {
  return request.get({ url: '/example/detail', params: { id } })
}

export const delTableListApi = (ids: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: '/example/delete', data: { ids } })
}
